﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;
using System.Net;
using System.IO;

namespace ProcessesSMS
{
    /// <summary>
    /// 
    /// </summary>
    ///    
    public class TESTT
    {
        private SMS_MO WMO;
        private SMS_MT WMT;
        ArrayList arr = new ArrayList();

        public TESTT(SMS_MO MO)
        {
            WMO = MO;
        }
        public TESTT() { }

        public void run()
        {
            WMT = new SMS_MT(WMO);

            DateTime ngayketthuc = new DateTime(2012, 05, 07, 17, 00, 00);
            //// DateTime  ngayketthucss = new DateTime(2012,05,07);
            DateTime ngayhientai = DateTime.Now;
            int kq = DateTime.Compare(ngayhientai, ngayketthuc);
            string strReturnMsg = string.Empty; // = "He_Thong_Hoat_Dong_Tot-=~!@#$%^&*()";//
            if (kq >= 0)
                strReturnMsg = "Test TUU's. He thong binh chon TUU chua ket thuc";
            else
                strReturnMsg = "Test TUU's. He thong binh chon TUU ket thuc \n. xin cam on!";

            WMT.AddMessage(WMO.UserID, strReturnMsg, SMS_ContentType.SMS_TEXT);
            WMT.MsgType = SMS_MsgType.SMS_TINHTIEN;

            WMT.Insert();

            return;
        }
    }
}
